package com.tjbklx1.thread.chap03.practise05;

import com.tjbklx1.thread.chap03.demo01.Request;
import com.tjbklx1.thread.chap03.demo01.RequestQueue;

public class Test {
	
	public static void main(String[] args) {
		RequestQueue req01 = new RequestQueue();
		RequestQueue req02 = new RequestQueue();
		req01.putRequest(new Request("hello"));
		new TalkThread(req01, req02, "alice").start();
		new TalkThread(req02, req01, "bobby").start();
	}
}
